package com.monkeyk.os.infrastructure.jdbc;

import com.monkeyk.os.domain.users.Users;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author mountain 2017年3月17日11:54:40
 */
public class UserStateRowMapper implements RowMapper<Users> {

    public UserStateRowMapper() {
    }

    @Override
    public Users mapRow(ResultSet rs, int rowNum) throws SQLException {
        Users users = new Users();
            users . ownerState(rs.getString("owner_state")).guid(rs.getString("owner_id"));
        return users;
    }
}
